#ifndef REACTOR_H
#define REACTOR_H
/*
管理epoll的类
*/

#ifdef __linux__
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <string.h>
#include <sys/epoll.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>

#include "globalVariable.h"

// c语言打印开关
// #define PRINTFCMODE

typedef int (*CallbackParser)(char *Recvbuff,char *Sendbuff);

void SetCallbackFun_Reactor(int (*CallbackParser)(char *Recvbuff,char *Sendbuff));
void NetworkStart_Reactor(pthread_t *tid);
#endif

#endif